﻿using FastExecutor.Message.Annotation;
using FastExecutor.Message.Base.Design;
using FastExecutor.ORG.Entity;
using FastExecutor.ORG.Enum;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FastExecutor.ORG.Log
{
    [MessageChanelAttribute(ChannelName = "Login")]
    public class LoginLog : FastDefaultMessageHandler
    {
        public override void CustomHandle(Message.Design.Message Message)
        {
            Frame_LoginLog LogEntity = JsonConvert.DeserializeObject<Frame_LoginLog>(Message.MessageBody.MessageJsonContent);
            @DBUtil.Insert(LogEntity);
            base.CustomHandle(Message);
        }
    }
}
